<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th>地区</th>
        <th>小区</th>
        <th>专营店</th>
        <th>所在城市</th>
        <th>流水号</th>
        <th>项目名称</th>
        <th>广宣形式</th>
        <th>投放媒体</th>
        <th>投放内容</th>
        <th>开始时间</th>
        <th>结束时间</th>
        <th>来电量（批）</th>
        <th>到店量（批）</th>
        <th>预算申请费用</th>
        <th>广宣传播方案</th>
        <th>预算审核费用</th>
        <th>预算审核情况</th>
        <th>结算材料</th>
        <th>结算申请费用</th>
        <th>结算审核费用</th>
        <th>结算审核情况</th>
        <th>评分系数</th>
        <th>备注</th>
   </tr>
   <?php
    foreach($onlineList as $v){
        $storeData = isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']] : array();
    ?>
   <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$v['id']?></td>
        <td><?=$v['projectName']?></td>
        <td><?=$v['mediaTypeStr']?></td>
        <td><?=$v['mediaName']?></td>
        <td><?=$v['mediaContent']?></td>
        <td><?=$v['startTime']?></td>
        <td><?=$v['endTime']?></td>
        <td><?=$v['callCount']?></td>
        <td><?=$v['comeCount']?></td>
        <td><?=$v['budgetApply']?></td>
        <td>
        <?php if ($v['budgetFileId']) {?>
            <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME']?>/<?php echo ENV=='test'?'qirmp2016_demo':'qirmp2016'?>/<?=printUrl('Upload','download',array('fileId'=>$v['budgetFileId']))?>" target="_blank">附件下载</a>
        <?php }?>
        </td>
        <td><?=$v['budgetAudit']?></td>
        <td><?=$v['budgetAuditStr']?></td>
        <td>
        <?php if ($v['settleFileId']) {?>
            <a href="<?php echo 'http://'.$_SERVER['SERVER_NAME']?>/<?php echo ENV=='test'?'qirmp2016_demo':'qirmp2016'?>/<?=printUrl('Upload','download',array('fileId'=>$v['settleFileId']))?>" target="_blank">附件下载</a>
        <?php }?>
        </td>
        <td><?=$v['settleApply']?></td>
        <td><?=$v['lastSettleAudit']?></td>
        <td><?=$v['settleAuditStr']?></td>
        <td><?=$v['kpi']?></td>
        <td><?=$v['remarks']?></td>
    </tr>
    <?php }?>
</table>